package com.rockcent.mall.lib.repository;

import com.rockcent.mall.lib.domain.MarketMerchant;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * Created by DK on 16/9/20.
 * 分销市场商家
 */
@Repository
public interface MarketMerchantRepository extends JpaRepository<MarketMerchant, Long>, JpaSpecificationExecutor, MarketMerchantRepositoryCustom {
    MarketMerchant findByMerchantIdAndMallId(Long merchantId, Long mallId);
}
